import { createSSRApp } from 'vue'
import App from './App.vue'
import TnIcon from '@tuniao/tnui-vue3-uniapp/components/icon/src/icon.vue'
import i18n from './locale'

export function createApp() {
  const app = createSSRApp(App)

  app.component('TnIcon', TnIcon)
  app.use(i18n)

  return {
    app
  }
}
